/**
 * @properties={typeid:24,uuid:"0DED2672-4474-4A2E-ABBC-2826243290D9"}
 */
function salir()
{
	var $win = application.getWindow('ALTA_CLIENTE')
	$win.hide()
	$win.destroy()
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"80AF211C-95BF-448F-97FD-EE51BA046E17"}
 */
function onShow(firstShow, event) {
	_super.onShow(firstShow, event)
	controller.newRecord()
}

/**
 * @properties={typeid:24,uuid:"D609E7EB-D7C4-4E5B-8A8E-1E2DB716730D"}
 */
function guardar() {
	if ( _super.guardar() == true)
	{
		salir()
	}
}

/**
 * @properties={typeid:24,uuid:"0765A65F-16E4-4A6F-98A4-4260E86B6864"}
 */
function cancelar() {
	controller.deleteRecord()
	salir()
}
